<template>
	<view class="travelling_box">
		<view class="item" v-for="(item,index) in userList">
			<view class="name">{{item.name}}</view>
			<view class="info">联系方式：{{item.mobilePhone}}</view>
			<view class="info">身份证号：{{item.idCard}}</view>
		</view>
		
	</view>
</template>

<script>
	import util from '../../common/util.js'
	export default {
		data() {
			return {
				userList:[]
			}
		},
		onLoad(){
			
		},
		onShow(){
			this.getStream()
		},
		onReachBottom() {
			// uni.showToast({
			// 	title:1111111111
			// })
		},
		methods: {
			//获取出行人信息
			getStream(){
				uni.showLoading({
					mask:true,
					title: '加载中'
				});
				var that=this;
				var params={}
				util.fetchPost('/user/accompanier/list',params,function(res){
					that.userList=res.data
					uni.hideLoading();
				},function(){},true)
			},
		}
	}
</script>

<style>
	.travelling_box{
		padding: 0 25upx;
	}
	.travelling_box .item{
		padding: 25upx 0;
		border-bottom: 1px solid #EAEAEA;
	}
	.travelling_box .item .name{
		font-size: 32upx;
		color: #333;
		font-weight: 600;
	}
	.travelling_box .item .info{
		font-size: 24upx;
		color: #999;
		margin-top: 20upx;
	}
</style>
